/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aqu.persistencia.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Verito Ramirez
 *         Victor Jaramillo
 */
@Entity
@Table(name = "cxp_tarifaadicional")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "CxpTarifaAdicional.findAll", query = "SELECT s FROM CxpTarifaAdicional s"),
    @NamedQuery(name = "CxpTarifaAdicional.findBycxpCodigoTarAdi", query = "SELECT s FROM CxpTarifaAdicional s WHERE s.cxpCodigoTarAdi = :cxpCodigoTarAdi"),
    @NamedQuery(name = "CxpTarifaAdicional.findBycxpNombreTarAdi", query = "SELECT s FROM CxpTarifaAdicional s WHERE s.cxpNombreTarAdi = :cxpNombreTarAdi"),
    @NamedQuery(name = "CxpTarifaAdicional.findBycxpValorTarAdi", query = "SELECT s FROM CxpTarifaAdicional s WHERE s.cxpValorTarAdi = :cxpValorTarAdi"),
    @NamedQuery(name = "CxpTarifaAdicional.findBycxpSignoTarAdi", query = "SELECT s FROM CxpTarifaAdicional s WHERE s.cxpSignoTarAdi = :cxpSignoTarAdi")})
public class CxpTarifaAdicional implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @NotNull
    @Size(min = 1, max = 10)
    @Column(name = "CXP_CODIGO_TARADI")
    private String cxpCodigoTarAdi;
    @Size(max = 45)
    @Column(name = "CXP_NOMBRE_TARADI")
    private String cxpNombreTarAdi;
    @Column (name="CXP_VALOR_TARADI")
    private Double cxpValorTarAdi;
    @Size(max = 30)
    @Column(name = "CXP_SIGNO_TARADI")
    private String cxpSignoTarAdi;
    
    
    public CxpTarifaAdicional() {
    }
    
    public CxpTarifaAdicional(String cxpCodigoTarAdi) {
        this.cxpCodigoTarAdi = cxpCodigoTarAdi;
    }

    public CxpTarifaAdicional(String cxpCodigoTarAdi, String cxpNombreTarAdi, Double cxpValorTarAdi, String cxpSignoTarAdi) {
        this.cxpCodigoTarAdi = cxpCodigoTarAdi;
        this.cxpNombreTarAdi = cxpNombreTarAdi;
        this.cxpValorTarAdi = cxpValorTarAdi;
        this.cxpSignoTarAdi=cxpSignoTarAdi;
    }

    public String getCxpCodigoTarAdi() {
        return cxpCodigoTarAdi;
    }

    public void setCxpCodigoTarAdi(String cxpCodigoTarAdi) {
        this.cxpCodigoTarAdi = cxpCodigoTarAdi;
    }

    public String getCxpNombreTarAdi() {
        return cxpNombreTarAdi;
    }

    public void setCxpNombreTarAdi(String cxpNombreTarAdi) {
        this.cxpNombreTarAdi = cxpNombreTarAdi;
    }

    public Double getCxpValorTarAdi() {
        return cxpValorTarAdi;
    }

    public void setCxpValorTarAdi(Double cxpValorTarAdi) {
        this.cxpValorTarAdi = cxpValorTarAdi;
    }
    

    public String getCxpSignoTarAdi() {
        return cxpSignoTarAdi;
    }

    public void setCxpSignoTarAdi(String cxpSignoTarAdi) {
        this.cxpSignoTarAdi = cxpSignoTarAdi;
    }

    

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (cxpCodigoTarAdi != null ? cxpCodigoTarAdi.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof CxpTarifaAdicional)) {
            return false;
        }
        CxpTarifaAdicional other = (CxpTarifaAdicional) object;
        if ((this.cxpCodigoTarAdi == null && other.cxpCodigoTarAdi != null) || (this.cxpCodigoTarAdi != null && !this.cxpCodigoTarAdi.equals(other.cxpCodigoTarAdi))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "clases.CxpTarifaAdicional[ cxpCodigoTarAdi=" + cxpCodigoTarAdi + " ]";
    }
    
}
